package com.kzw.oa.system.bean;

import java.util.List;

/**
 * layui树结构
 */
public class TreeNode {

	// ID值
	private Object id;
	// 节点名称
	private String name;
	// 是否展开状态（默认false）
	private boolean spread;
	// 节点链接（可选），未设则不会跳转
	private String href;
	// 子结点
	private List<TreeNode> children;

	// v1 已被使用 为path
	private Object v1;
	// 自定义元素
	private Object v2;

	public TreeNode() {
	}

	public TreeNode(Object id, String name) {
		this.id = id;
		this.name = name;
	}

	public TreeNode(Object id, String name, String path) {
		this.id = id;
		this.name = name;
		this.v1 = path;
	}

	public TreeNode(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isSpread() {
		return spread;
	}

	public void setSpread(boolean spread) {
		this.spread = spread;
	}

	public String getHref() {
		return href;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public Object getId() {
		return id;
	}

	public void setId(Object id) {
		this.id = id;
	}

	public List<TreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<TreeNode> children) {
		this.children = children;
	}

	public Object getV1() {
		return v1;
	}

	public void setV1(Object v1) {
		this.v1 = v1;
	}

	public Object getV2() {
		return v2;
	}

	public void setV2(Object v2) {
		this.v2 = v2;
	}

}
